Skip to content

Update to sidebar header styles for upcoming wallet as sidepanel#34354

Open
aguscruiz wants to merge 5 commits intomasterfrom
side-panel-headers
Open

Update to sidebar header styles for upcoming wallet as sidepanel#34354
aguscruiz wants to merge 5 commits intomasterfrom
side-panel-headers

Conversation

@aguscruiz
Copy link
Collaborator

@aguscruiz aguscruiz commented Mar 2, 2026

Effort to standadrize panels in desktop so the future wallet as a sidebar item can work within a system

https://www.figma.com/design/Fbtxfv2ATGlfH7nPXiWAbR/%F0%9F%92%BB-Browser-Sidebar?node-id=1749-34459

Resolves brave/brave-browser#53164
Resolves brave/brave-browser#53165
Resolves brave/brave-browser#47881

Current version

image image image image

Updated version

Default theme - light

image image image image

Default theme - dark

image image image image

Color theme - light

image image image image

Color theme - dark

image image image image

Update to Theme and Toolbar sidepanels to make them responsive

Current version

image image

Updated version

Screen.Recording.2026-03-02.at.12.06.25.mov

effort to standadrize panels in desktop so the future wallet as a sidebar item can work correctly https://www.figma.com/design/Fbtxfv2ATGlfH7nPXiWAbR/%F0%9F%92%BB-Browser-Sidebar?node-id=1749-34459
@github-actions github-actions bot added the CI/storybook-url Deploy storybook and provide a unique URL for each build label Mar 2, 2026
@aguscruiz aguscruiz requested review from fallaciousreasoning, petemill, sangwoo108 and simonhong and removed request for petemill March 2, 2026 14:11
@brave-builds
Copy link
Collaborator

A Storybook has been deployed to preview UI for the latest push

Bonus, but it's very badly needed to have a properly responsive panel
@aguscruiz aguscruiz requested a review from a team as a code owner March 2, 2026 15:03
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2026

📋 Code Owners Summary

13 file(s) changed, 4 with assigned owners

1 team(s) affected: @brave/chromium-src-web-reviewers


Owners and Their Files

@brave/chromium-src-web-reviewers — 4 file(s)

@aguscruiz aguscruiz changed the title Update to styles for upcoming wallet as sidepanel Update to sidebar header styles for upcoming wallet as sidepanel Mar 2, 2026
mixer[kColorSidebarPanelHeaderSeparator] = {nala::kColorDividerSubtle};
mixer[kColorSearchConversionCloseButton] = {nala::kColorIconDefault};
mixer[kColorSidebarPanelHeaderBackground] = {nala::kColorContainerBackground};
mixer[kColorSidebarPanelHeaderBackground] = {nala::kColorPageBackground};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason we can't just use the Nala color directly, rather than via this one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed kColorSidebarPanelHeaderBackground intermediate token entirely. Now using nala::kColorPageBackground directly at the call sites in side_panel.cc, brave_read_later_side_panel_view.cc, and brave_bookmarks_side_panel_view.cc.

mixer[kColorSidebarPanelHeaderTitle] = {nala::kColorTextPrimary};
mixer[kColorSidebarPanelHeaderButton] = {nala::kColorIconDefault};
mixer[kColorSidebarPanelHeaderButtonHovered] = {nala::kColorNeutral60};
mixer[kColorSidebarPanelBackground] = {nala::kColorContainerBackground};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we just use this nala token directly?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed kColorSidebarPanelBackground intermediate token. Now using nala::kColorContainerBackground directly in brave_side_panel_view_base.cc.


mixer[kColorSidebarPanelHeaderSeparator] = {nala::kColorPrimitiveNeutral20};
mixer[kColorSidebarPanelHeaderBackground] = {nala::kColorPrimitiveNeutral5};
mixer[kColorSidebarPanelHeaderBackground] = {nala::kColorPageBackground};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed both kColorSidebarPanelHeaderBackground and kColorSidebarPanelBackground from the private theme mixer as well. Also removed kColorSidebarPanelHeaderSeparator and replaced it with nala::kColorDividerSubtle directly in brave_bookmarks_side_panel_view.cc.

Comment on lines +56 to +60
.sp-card {
max-width: none;
}

customize-chrome-appearance,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could these selectors be joined with a ,

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Merged .sp-card and the customize-chrome-* selectors into a single comma-separated rule.

@@ -22,9 +22,7 @@
<link rel="manifest" href="manifest.webmanifest">
<style>
@media (prefers-color-scheme: dark) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be removed now?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah wait, I think this is needed to avoid a FOUC while we're loading the page

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the hardcoded #111114 to var(--leo-color-container-background) so it uses the Nala token instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated CI/storybook-url Deploy storybook and provide a unique URL for each build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Side panel - Header design updates Brave AI - Navigation header - Design update Sidebar panels break when resized

4 participants